package com.fangcun.service.admin;

import java.util.List;

import com.fangcun.bean.api.category.response.CategoryWithChildrenResponse;
import com.fangcun.bean.sys.PageBean;
import com.fangcun.common.exception.ProException;
import com.fangcun.entity.GoodsCategory;
import com.github.pagehelper.PageInfo;

public interface GoodsCategoryService {
	
	// PC 添加商品 展示的 下拉功能
	public List<CategoryWithChildrenResponse> listWithChildren(Long distributorId)throws ProException;
	//
	public PageInfo<GoodsCategory> list(PageBean<GoodsCategory> request)throws ProException;
	//
	public GoodsCategory detail(Long id)throws ProException;
	
	public void update(GoodsCategory request)throws ProException;
	
	public void add(GoodsCategory request)throws ProException;
	
	public void delete(Long id)throws ProException;
}
